home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.4)
-
- '''curses
-
- The main package for curses support for Python. Normally used by importing
- the package, and perhaps a particular module inside it.
-
- import curses
- from curses import textpad
- curses.initwin()
- ...
-
- '''
- __revision__ = '$Id: __init__.py,v 1.5 2004/07/18 06:14:41 tim_one Exp $'
- from _curses import *
- from curses.wrapper import wrapper
-
- def initscr():
- import _curses
- import curses
- stdscr = _curses.initscr()
- for key, value in _curses.__dict__.items():
- if key[0:4] == 'ACS_' or key in ('LINES', 'COLS'):
- setattr(curses, key, value)
- continue
-
- return stdscr
-
-
- def start_color():
- import _curses
- import curses
- retval = _curses.start_color()
- if hasattr(_curses, 'COLORS'):
- curses.COLORS = _curses.COLORS
-
- if hasattr(_curses, 'COLOR_PAIRS'):
- curses.COLOR_PAIRS = _curses.COLOR_PAIRS
-
- return retval
-
-
- try:
- has_key
- except NameError:
- from has_key import has_key
-
-